/**
 * 
 */
package soa.security.dao;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.ldap.query.SearchScope;

import soa.security.domain.Person;

/**
 * @author Cre.Gu
 *
 */
public interface PersonDao extends SpringLdapDao<Person> {

	List<Person> allPersons(String baseDn, SearchScope searchScope,
			Map<String, Object> parameters);
	
	Page<Person> allPersons(String baseDn, org.ldaptive.SearchScope searchScope,
			Map<String, Object> parameters, PageRequest pageRequest) throws Exception;
	
	public List<Person> findByOrgAndName(String baseDn, SearchScope searchScope, String cname);

}
